﻿using System.Web.Routing;
using Omu.AwesomeWebForms;
using Uber.Infra;

namespace Uber.WebUI
{
    using System.Web.Mvc;

    public static class Bootstrapper
    {
        public static void Bootstrap()
        {
            log4net.Config.XmlConfigurator.Configure();
            RouteConfigurator.RegisterRoutes(RouteTable.Routes);
            ControllerBuilder.Current.SetControllerFactory(new WindsorControllerFactory(IoC.Container));
            WindsorConfigurator.Configure();
            Worker.Start();
            
            Settings.AjaxList.MoreText = "show more results";
            Settings.Lookup.OkText = "Choose";
            Settings.Lookup.ClearButton = true;
            Settings.MultiLookup.Fullscreen = true;
        }
    }
}
